<script type="text/javascript">
	var hidLocation = $('hid-main-wsurl').val()+'sys/login/index';
    if(top.location != hidLocation) {
		if(parent){
			parent.tb_remove();
        }
    }
</script>
<div id="seotoaster" class="screencenter">
<div class="admineditwhat">Login</div>
	<div id="login-errors" class="errors"  style="<?php echo(isset($this->invalidLogin) && $this->invalidLogin) ? 'display:block' : 'display:none'; ?>; cursor:pointer;" onclick="this.style.display='none';">
		<ul>
			<li id="inv-login-data" style="<?php echo(isset($this->invalidLoginPas) && $this->invalidLoginPas) ? 'display:block' : 'display:none'; ?>"><strong>Invalid login or password.</strong></li>
			<li id="prs-lenght-short" style="<?php echo (isset($this->errorElements)) ? 'display:block;' : 'display:none;';?>"><strong>Please, fill all fields.</strong></li>
		</ul>
	</div>
	<form action="<?php echo $this->websiteUrl; ?>sys/login/index/" method="post">
	<div id="loginbox">	
		<p style="margin-top:55px;"><label id="login">Login:</label> <?php echo $this->loginForm->login; ?></p>
		<p><label id="password">Password:</label> <?php echo $this->loginForm->password; ?></p>
		<p><label id="languages">Translate in:</label> <?php echo $this->loginForm->selectlanguage; ?></p>
	</div>
	<?php echo $this->loginForm->submit; ?>
	</form>		
</div>